package com.guigu.gulicommon.entity.pojo.res;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * 自定义分页对象
 *
 * @param <T>
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class PagePoJo<T> {
    private long pageNum;
    private long pageSize;
    private long total;
    private Long records;
    private List<T> data;
}
